import 'package:flutter/material.dart';
import 'package:tihai/entity/base.dart';

class UserBean extends BaseBean{

  late int id;

  late String username;

  late String password;

  late String phone;

  late String imageUrl;

  late int score;


  @override
  UserBean fromJson(Map<String, dynamic> data) {
    UserBean userBean = UserBean();
    userBean.id = data["id"];
    userBean.username = data["username"];
    userBean.password = data["password"];
    userBean.phone = data["phone"];
    userBean.imageUrl = data["imageUrl"];
    userBean.score = data["score"];
    return userBean;
  }

}